/**
 * 
 */
package com.ms.game.slot.base.message;

import com.xpec.c4.game.utility.GameUtility;

/**
 * gmtool 通知 doorman 清除座位保留狀態的要求
 * 
 * @author TW15010
 *
 */
public class SGmtoolCleanDoormanSeatStatusRequest extends SlotBasicDMMessageRequest {
	/**
	 * 座位保留資料的擁有者 guid, 這裡有值表示是從座位保留資料進行清除狀態的, 用這個 player id 去清除 keep data,
	 * 沒有的話就用機台內玩家的 guid 去清
	 */
	private String keepDataPlayerId;

	/**
	 * 是否為離線保留
	 */
	private boolean offlineKeep;
	
	/**
	 * 是否由DataCenterLite發出的request
	 */
	private boolean isFromDataCenterLite;

	/**
	 * 判斷是否有指定 keep data 的 player id
	 * 
	 * @return
	 */
	public boolean isHaveKeepDataPlayerId() {
		if (GameUtility.isHaveString(keepDataPlayerId)) {
			return true;
		}

		return false;
	}

	public String getKeepDataPlayerId() {
		return keepDataPlayerId;
	}

	public void setKeepDataPlayerId(String keepDataPlayerId) {
		this.keepDataPlayerId = keepDataPlayerId;
	}

	public boolean isOfflineKeep() {
		return offlineKeep;
	}

	public void setOfflineKeep(boolean offlineKeep) {
		this.offlineKeep = offlineKeep;
	}

	public boolean isFromDataCenterLite() {
		return isFromDataCenterLite;
	}

	public void setFromDataCenterLite(boolean isFromDataCenterLite) {
		this.isFromDataCenterLite = isFromDataCenterLite;
	}
}
